package com.shanling.shanlingcontroller.persenter.contract;

import android.content.Context;

import com.shanling.shanlingcontroller.bean.Music;
import com.shanling.shanlingcontroller.persenter.BasePersenter;
import com.shanling.shanlingcontroller.services.csr.UpgradeGaiaManager;
import com.shanling.shanlingcontroller.ui.BaseView;

import java.io.File;
import java.util.List;

/**
 * Created by ch1 on 2019/12/20.
 */

public interface OTAContract {

    interface View extends BaseView {
        void getLatestversionFaild();
        void getLatestversionSuccess(String versionCode,String url);
        void Islatestversion();
        void onDownloadFaild();
        void onDownloadSuccess();
        void onDawnload(String progress);
        void onOTAFaild();
        void onOTASuccess();
        void onProgress(float progress);
    }
    interface Presenter extends BasePersenter<View> {
        void getLatestversion(int bletype,String version);
        void download(String url ,String fileName);
        void startCSROTA(UpgradeGaiaManager mUpgradeGaiaManager,File file);
        void startUS1OTA(Context context,String path);
        void StartUS1IOTA(Context context,String path);
    }
}
